package com.xcm.service.impl;

import com.xcm.dao.ProgramJsonAuthFailDetailMapper;
import com.xcm.exception.ServiceException;
import com.xcm.model.TbProgramJsonAuthFailDetail;
import com.xcm.service.ProgramJsonAuthFailDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 节目json校验失败详情Service实现类
 */
@Service(value = "programJsonAuthFailDetailService")
public class ProgramJsonAuthFailDetailServiceImpl implements ProgramJsonAuthFailDetailService{
	@Autowired
	private ProgramJsonAuthFailDetailMapper programJsonAuthFailDetailMapper;

	/**
	 * 保存节目json校验失败详情
	 *
	 * @param programJsonAuthFailDetail TbProgramJsonAuthFailDetail
	 */
	@Override
	public void saveProgramJsonAuthFailDetail(TbProgramJsonAuthFailDetail programJsonAuthFailDetail) throws ServiceException {
		if (programJsonAuthFailDetail == null) {
			throw new ServiceException("输入参数为空");
		}
		programJsonAuthFailDetailMapper.saveProgramJsonAuthFailDetail(programJsonAuthFailDetail);
	}
}
